package com.shadow.mall.fulfill.remote;


import com.shadow.mall.common.core.JsonResult;
import com.shadow.mall.fulfill.exception.FulfillBizException;
import com.shadow.mall.tms.api.TmsApi;
import com.shadow.mall.tms.domain.SendOutDTO;
import com.shadow.mall.tms.domain.SendOutRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * tms服务远程接口
 *
 * @version 1.0
 */
@Component
@FeignClient("shadow-mall-tms")
public interface TmsService {


    /**
     * 发货
     */
    @RequestMapping("/tms/sendOut")
    JsonResult<SendOutDTO> sendOut(SendOutRequest request);

    /**
     * 取消发货
     */
    @RequestMapping("/tms/cancelSendOut")
    JsonResult<Boolean>  cancelSendOut(String orderId);

}
